package com.qst.express.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qst.express.entity.Express;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qst.express.entity.vo.ExpressVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
public interface ExpressService extends IService<Express> {

    IPage<Express> pageTeacherCondition(Page<Express> expressVoPage, ExpressVo expressVo);

    List<Map<String, Integer>> console();

    List<Express> rankByMonth();

    List<Express> rankByYear();

    List<Express> rankByAll();

    List<Express> findByUserPhone(String userphone);

    List<Express> findByUserPhoneAndStatus(String userPhone, int status);

    boolean updateStatus(String code);

    Express findByCode(String code);

    boolean saveExpress(Express express, String uphone);

    boolean isExsitNumber(String number);

    boolean isExsitUserPhone(String uphone);

    Express findByNumber(String number);

    List<Map<String, Integer>> consoleMonth();



}
